/* 物流标签样式 */
.shipping-method, .carrier-name {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  
  &.yamato {
    background-color: #fdd101;
    color: #000;
  }
  
  &.sagawa {
    background-color: #3b499f;
    color: #fff;
  }
}

/* 订单号容器样式 */
.order-number-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 改码标签样式 */
.change-code-tag {
  margin-top: 5px;
  font-size: 12px;
  padding: 0 6px;
  height: 20px;
  line-height: 18px;
}

/* 物流信息样式 */
.tracking-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  .tracking-number {
    font-size: 13px;
    color: #409EFF;
    cursor: pointer;

    &:hover {
      text-decoration: underline;
    }
  }
}

/* 过滤器容器样式 */
.filter-container {
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  .filter-item {
    margin: 0 !important;
    height: 32px;
    display: flex;
    align-items: center;

    &.el-button {
      padding: 0 15px;
      border-radius: 4px;
      transition: all 0.3s;
      font-weight: 500;
      height: 40px;
      line-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 !important;

      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }

      &:active {
        transform: translateY(0);
      }

      &.el-button--primary {
        background: linear-gradient(135deg, #409EFF 0%, #3a8ee6 100%);
        border: none;

        &:hover {
          background: linear-gradient(135deg, #66b1ff 0%, #409EFF 100%);
        }
      }

      &.el-button--danger {
        background: linear-gradient(135deg, #F56C6C 0%, #e64242 100%);
        border: none;

        &:hover {
          background: linear-gradient(135deg, #f78989 0%, #F56C6C 100%);
        }
      }

      i {
        margin-right: 5px;
      }
    }

    &.el-input {
      .el-input__inner {
        height: 32px;
        line-height: 32px;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        transition: all 0.3s;

        &:hover {
          border-color: #c0c4cc;
        }

        &:focus {
          border-color: #409EFF;
          box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
        }
      }
    }

    &.el-select {
      .el-input__inner {
        height: 32px;
        line-height: 32px;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        transition: all 0.3s;

        &:hover {
          border-color: #c0c4cc;
        }

        &:focus {
          border-color: #409EFF;
          box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
        }
      }
    }

    &.el-date-editor {
      width: 300px !important;

      .el-range-input {
        height: 30px;
        line-height: 30px;
        padding: 0 8px;
        font-size: 13px;
        width: 120px;
      }

      .el-range__icon {
        line-height: 30px;
        height: 30px;
      }

      .el-range__close-icon {
        line-height: 30px;
        height: 30px;
      }

      .el-range-separator {
        line-height: 30px;
        height: 30px;
        padding: 0 4px;
      }

      .el-input__icon {
        line-height: 30px;
        height: 30px;
      }
    }
  }

  .upload-button {
    display: inline-flex;
    align-items: center;
    height: 32px;

    .el-upload {
      display: inline-flex;
      align-items: center;
      height: 32px;
    }
  }

  .selection-info {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-left: 10px;
    color: #606266;

    .selection-count {
      color: #409EFF;
      font-weight: bold;
      margin: 0 4px;
    }
  }
}

/* PDF预览对话框样式 */
.pdf-preview-dialog {
  .el-message-box {
    width: 90% !important;
    max-width: 1200px !important;
    margin-top: 2vh !important;
    
    .el-message-box__content {
      padding: 20px;
      max-height: 85vh;
      
      .el-message-box__message {
        p {
          margin: 0;
          
          iframe {
            width: 100%;
            height: 80vh;
            border: none;
          }
        }
      }
    }
  }
} 

/* 操作按钮布局样式 */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  
  .el-button {
    margin: 0;
    min-width: 48px;
  }
  
  /* 宽屏幕时水平排列 */
  @media screen and (min-width: 1201px) {
    flex-direction: row;
    gap: 10px;
  }
  
  /* 中等屏幕时保持水平排列但间距减小 */
  @media screen and (max-width: 1200px) and (min-width: 769px) {
    flex-direction: row;
    gap: 6px;
    
    .el-button {
      min-width: 40px;
    }
  }
  
  /* 小屏幕时垂直排列 */
  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 4px;
    
    .el-button {
      width: 60px;
      min-width: 60px;
    }
  }
  
  /* 超小屏幕时紧凑布局 */
  @media screen and (max-width: 480px) {
    flex-direction: column;
    gap: 2px;
    
    .el-button {
      width: 50px;
      min-width: 50px;
      font-size: 8px;
      padding: 2px 4px;
    }
  }
}

/* 表格容器样式 */
.custom-table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;

  ::v-deep .el-table {
    width: 100% !important;
    table-layout: auto;
  }

  ::v-deep .el-table__header-wrapper {
    background-color: #f5f7fa;
  }

  ::v-deep .el-table__header th {
    background-color: #f5f7fa;
    color: #606266;
    font-weight: 600;
    height: 50px;
    padding: 8px 0;
  }

  ::v-deep .el-table__body td {
    padding: 12px 0;
  }

  ::v-deep .el-table--enable-row-hover .el-table__body tr:hover > td {
    background-color: #f5f7fa;
  }

  ::v-deep .el-table--border,
  ::v-deep .el-table--group {
    border: none;
  }

  ::v-deep .el-table--border::after,
  ::v-deep .el-table--group::after {
    display: none;
  }

  ::v-deep .el-table__fixed-right::before,
  ::v-deep .el-table__fixed::before {
    display: none;
  }

  ::v-deep .el-checkbox__inner {
    border-radius: 4px;
    transition: all 0.3s;
  }

  ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #67c23a;
    border-color: #67c23a;
  }

  /* 响应式设计 */
  @media screen and (max-width: 1400px) {
    ::v-deep .el-table__header th,
    ::v-deep .el-table__body td {
      padding: 8px 4px;
      font-size: 13px;
    }
    
    ::v-deep .el-button--mini {
      padding: 5px 8px;
      font-size: 11px;
    }
  }

  @media screen and (max-width: 1200px) {
    ::v-deep .el-table__header th,
    ::v-deep .el-table__body td {
      padding: 6px 3px;
      font-size: 12px;
    }
    
    ::v-deep .el-button--mini {
      padding: 4px 6px;
      font-size: 10px;
    }
    
    ::v-deep .el-tag--mini {
      font-size: 9px;
      padding: 0 4px;
    }
  }

  @media screen and (max-width: 768px) {
    ::v-deep .el-table__header th,
    ::v-deep .el-table__body td {
      padding: 4px 2px;
      font-size: 11px;
    }
    
    ::v-deep .el-button--mini {
      padding: 3px 5px;
      font-size: 9px;
    }
    
    ::v-deep .el-tag--mini {
      font-size: 8px;
      padding: 0 3px;
    }
  }

  @media screen and (max-width: 480px) {
    ::v-deep .el-table__header th,
    ::v-deep .el-table__body td {
      padding: 2px 1px;
      font-size: 10px;
    }
    
    ::v-deep .el-button--mini {
      padding: 2px 4px;
      font-size: 8px;
    }
  }
}

/* 选择信息样式 */
.selection-info {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #606266;
  background: #f0f9eb;
  padding: 0 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;

  .selection-count {
    color: #67c23a;
    font-weight: bold;
    margin: 0 4px;
  }
}

/* 按钮通用样式 */
.el-button {
  border-radius: 4px;
  transition: all 0.3s;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* 分页器样式 */
.pagination-container {
  padding: 20px 0;
  text-align: right;
}

/* 对话框样式 */
.el-dialog {
  border-radius: 8px;

  .el-dialog__body {
    padding: 20px;
  }

  .el-form-item {
    margin-bottom: 20px;
  }

  .el-form-item__label {
    font-weight: 500;
  }

  .dialog-footer {
    text-align: right;
    padding-top: 10px;
  }
}

/* 可复制文本样式 */
.copy-text {
  cursor: pointer;
  color: #409EFF;

  &:hover {
    text-decoration: underline;
  }
}